package com.honglang.module.user.action;



import java.io.ByteArrayInputStream;

import com.honglang.common.tools.AuthenticalCode;
import com.honglang.struts2.action.BaseAction;
import com.opensymphony.xwork2.Action;

public class PictureCheckCodeAction extends BaseAction{
	
	private ByteArrayInputStream inputStream;
	
	private AuthenticalCode authenticalCodeFactory;
	


	public String execute() throws Exception{

        this.setInputStream(authenticalCodeFactory.createAuthenticalCode(this.getRequest()));
       
        return Action.SUCCESS; 
		
	}

	public ByteArrayInputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(ByteArrayInputStream inputStream) {
		this.inputStream = inputStream;
	}

	public AuthenticalCode getAuthenticalCodeFactory() {
		return authenticalCodeFactory;
	}

	public void setAuthenticalCodeFactory(AuthenticalCode authenticalCodeFactory) {
		this.authenticalCodeFactory = authenticalCodeFactory;
	}
	

	
}
